
/**
 * 退出登录
 */
export function logout() {
  // console.log('logout 函数执行')
  if (wx.getStorageSync('isToLogin') !== '1') {
    console.log('进入if')
    const agreement = wx.getStorageSync('agreement')
    wx.clearStorageSync()
    wx.setStorageSync('isToLogin', '1')
    wx.setStorageSync('agreement', agreement)
    wx.navigateTo({
      url: '/pages/login/login'
    })
    // tipState = true
  }
}
